import React, {Component} from 'react';
import {Carousel} from 'antd';
class ExCarousel extends Component{
    componentWillMount() {
    }
    render(){
        return(
            <Carousel autoplay autoplaySpeed={5000}>
                <div>
                    <img style = {{width:"100%"}} src = {require("../../../public/img/moon.jpeg")} alt = "月色真美"/>
                </div>
                <div>
                    <img style = {{width:"100%"}} src = {require("../../../public/img/thunder.jpeg")} alt = "风暴！降临吧"/>
                </div>
            </Carousel>
        )
    }
}

export default ExCarousel;